.class public Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename$PromptForFavoriteCallback;
.super Ljava/lang/Object;
.source "ViewFavorites.java"

# interfaces
.implements Lcom/glympse/android/glympse/DlgShell$DlgShellListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "PromptForFavoriteCallback"
.end annotation


# instance fields
.field final synthetic this$1:Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;


# direct methods
.method protected constructor <init>(Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;)V
    .locals 0
    .parameter

    .prologue
    .line 399
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename$PromptForFavoriteCallback;->this$1:Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public OnCancel(Lcom/glympse/android/glympse/DlgShell;)V
    .locals 0
    .parameter "oDlgShell"

    .prologue
    .line 419
    return-void
.end method

.method public OnDismissed(Lcom/glympse/android/glympse/DlgShell;Z)V
    .locals 0
    .parameter "oDlgShell"
    .parameter "fOk"

    .prologue
    .line 424
    return-void
.end method

.method public OnOk(Lcom/glympse/android/glympse/DlgShell;)V
    .locals 3
    .parameter "oDlgShell"

    .prologue
    .line 405
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    if-eqz v1, :cond_0

    .line 407
    check-cast p1, Lcom/glympse/android/glympse/DlgPrompt;

    .end local p1
    invoke-virtual {p1}, Lcom/glympse/android/glympse/DlgPrompt;->GetText()Ljava/lang/String;

    move-result-object v0

    .line 408
    .local v0, strText:Ljava/lang/String;
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    iget-object v2, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename$PromptForFavoriteCallback;->this$1:Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;

    invoke-static {v2}, Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;->access$1(Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;)Lcom/glympse/platform/common/Ticket;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lcom/glympse/platform/common/FavoriteList;->Rename(Lcom/glympse/platform/common/Ticket;Ljava/lang/String;)V

    .line 410
    .end local v0           #strText:Ljava/lang/String;
    :cond_0
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename$PromptForFavoriteCallback;->this$1:Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;->access$2(Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;)Lcom/glympse/android/glympse/ViewFavorites;

    move-result-object v1

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewFavorites;->access$8(Lcom/glympse/android/glympse/ViewFavorites;)Lcom/glympse/android/glympse/ViewFavorites$TicketAdapter;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 412
    iget-object v1, p0, Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename$PromptForFavoriteCallback;->this$1:Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;->access$2(Lcom/glympse/android/glympse/ViewFavorites$OnClickedRename;)Lcom/glympse/android/glympse/ViewFavorites;

    move-result-object v1

    invoke-static {v1}, Lcom/glympse/android/glympse/ViewFavorites;->access$8(Lcom/glympse/android/glympse/ViewFavorites;)Lcom/glympse/android/glympse/ViewFavorites$TicketAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/glympse/android/glympse/ViewFavorites$TicketAdapter;->notifyDataSetChanged()V

    .line 414
    :cond_1
    return-void
.end method
